<div id="topic_edit_div" class="am-g" style="height: 100%;">
    <div class="am-u-sm-4" style="padding: 0; border-right: 1px solid #DEDEDE;height: 100%;">
        <div id="work_edit_div_introd" class="web-work-edit-div">
            <div class="web-work-edit-tittle">
                <b class="web-main-color">专题简介</b>
            </div>
            <div class="web-work-edit-content">
                <textarea id="topic_edit_content_introd"
                          placeholder="请输入专题简介"><?php if (isset($topicMsg)) echo $topicMsg->Introd; ?></textarea>
            </div>
        </div>
    </div>
    <div class="am-u-sm-8" style="padding: 0;height: 100%;">
        <div class="web-work-edit-tittle am-text-xs" style="padding-left: 20px">
            <div class="am-fl">
                <span>标题</span>
            </div>
            <div class="am-fl" style="width: 430px; padding-left: 10px;">
                <input id="topic_edit_tittle"
                       type="text"
                       class="am-form-field am-round am-fl am-text-xs"
                       placeholder="请填写专题标题"
                       style="padding: 3px 20px;border-color: #f3f2f3;background-color: #f3f2f3;"
                       value="<?php if (isset($topicMsg)) echo $topicMsg->Name; ?>"/>
            </div>
        </div>
        <div style="padding:10px 15px 10px 15px">
            <form action="<?= $CfgPara->httproot ?>/index.php"
                  id="upload_img_form" class="am-form" enctype="multipart/form-data" method="post">
                <div class="am-form-group am-form-file">
                    <i class="am-icon-cloud-upload app-main-color"></i>选择要上传的图片
                    <input id="img_upload" name="img_upload" type="file" accept="image/*">
                </div>
                <input style="display:none" name="controller" type="text" value="topic_edit"/>
                <input style="display:none" name="topic_id" type="text"
                       value="<?php if (isset($topicMsg)) echo $topicMsg->Id; else echo '0'; ?>"/>
                <input style="display:none" name="topic_name" type="text" value=""/>
                <input style="display:none" name="introd" type="text" value=""/>
                <input style="display:none" name="topic_state" type="text" value="0"/>
            </form>
            <div id="img_demo">
                <?php
                if (isset($topicMsg->Picture) && $topicMsg->Picture != '') {
                    $picMini = make_img_name::make_img_mini_name($topicMsg->Picture);
                    echo "<img class='app-img-preview' src='{$CfgPara->httproot}/topic_pic/{$picMini}' />";
                }
                ?>
            </div>
        </div>
    </div>
</div>
<div id="topic_edit_toolbar">
</div>
<script type="text/javascript">
    img_upload_ini("img_upload");
</script>